var opeForm;
var operationType;
$(function() {

    opeForm = $('#opeForm');
	//operationType = $('#operationType').val();
	opeForm.url = 'CER_ASSOC_MANAGE!doPreReg.do';
	
	$('#saveBtn').click(doSave);
	$('#cancelBtn').click(closeWin);
});

// Save operation
function doSave() {
	var options = {
		url : opeForm.url,
		type : 'post',
		success : function(data) {
			parent.afterSave();
			alert('Operation successfull!');
			closeWin();
		}
	};
	
	opeForm.ajaxSubmit(options);

}
